<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: yuitest  YAHOO.util.ShouldError   (YUI Library)</title>
	
	<link rel="shortcut icon" href="assets/yui_icon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1>
        	<a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a>
        	<img src="assets/yui_icon.png" alt="YUI文档中文化" />
        </h1>
        <h3>yuitest&nbsp; <span class="subtitle">2.7.0b</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_yuitest.html" title="yuitest">yuitest</a>
                 &gt; YAHOO.util.ShouldError 
                
        <form onsubmit="return false">
            <div id="propertysearch">
                搜索: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <h2>
                        

                        
                        
                            Class <b property="yui:name">YAHOO.util.ShouldError</b>
                        <span class="extends">
                           - extends <a href="YAHOO.util.AssertionError.html" title="YAHOO.util.AssertionError">YAHOO.util.AssertionError</a>
                        </span>

                    </h2>
                    <!-- class tree goes here -->
                    
                
  

                    <div class="summary description" property="yui:description">
                        ShouldError is subclass of AssertionError that is thrown whenever
a test is expected to throw an error but doesn't.
                    </div>

                        <div class="section constructor details" rel="yui:constructor" resource="#constructor">
                        <h3 id="constructor">Constructor</h3>
                        <div class="content">
                            <div class="detail">
                                <strong property="yui:name">YAHOO.util.ShouldError</strong>
                                <code>
                                    (
  
                                        
                                                
                                                message
                                    )
                                </code>
                                <div class="description">
                                        <dl rel="yui:parameters">
                                            <dt>Parameters:</dt>
                                                <dd rel="yui:parameter">
                                                    <code><span property="yui:name">message</span>
                                                    &lt;<span property="yui:type">String</span>&gt;
                                                    </code>
                                                    <span property="yui:description"> The message to display when the error occurs.</span>
                                                </dd>
                                        </dl>
                                    
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div rel="yui:properties" resource="#properties">
                        <div class="section field details">
                            <h3 id="properties">Properties</h3>
                            <div class="content">
                                    <div class="" rel="yui:property" resource="#property_name">
                                    <h4><a name="property_name" property="yui:name">name</a>
                                        - <code><span property="yui:type">String</span></code>
                                    </h4>
                                    <div class="detail">
                                        <div class="description" property="yui:description">
                                            The name of the error that occurred.
                                        </div>
                                    </div>
     
                                        


                                    <hr />
                                    </div>
                            </div>
                        </div>

                        <div rel="yui:inheritance">
                        <div class="section field inheritance" rel="yui:superclass"  resource="YAHOO.util.AssertionError.html">
                            <h4>Properties inherited from <a href="YAHOO.util.AssertionError.html" property="yui:name" title="YAHOO.util.AssertionError">YAHOO.util.AssertionError</a>:</h4>
                            <div class="content" rel="yui:properties">
                                <code>
                                    
                                        <span rel="yui:property" resource="YAHOO.util.AssertionError.html#property_name">
                                        <a class="" href="YAHOO.util.AssertionError.html#property_name" property="yui:name" title="name">name</a>
                                        </span>
                                    
                                </code>
                            </div>
                        </div>
                        </div>
                    </div>

                    <div rel="yui:methods" resource="#methods">

                        <div rel="yui:inheritance">                    
                            <div class="section field inheritance" rel="yui:superclass"  resource="YAHOO.util.AssertionError.html">
                                <h4>Methods inherited from <a href="YAHOO.util.AssertionError.html" property="yui:name" title="YAHOO.util.AssertionError">YAHOO.util.AssertionError</a>:</h4>
                                <div class="content" rel="yui:methods">
                                    <code>
                                            <span rel="yui:method" resource="YAHOO.util.AssertionError.html#method_getMessage">                                        
                                            <a class="" href="YAHOO.util.AssertionError.html#method_getMessage" property="yui:name" title="getMessage">getMessage</a><span class="">,</span>
                                            </span>
                                            <span rel="yui:method" resource="YAHOO.util.AssertionError.html#method_toString">                                        
                                            <a class="" href="YAHOO.util.AssertionError.html#method_toString" property="yui:name" title="toString">toString</a><span class="">,</span>
                                            </span>
                                            <span rel="yui:method" resource="YAHOO.util.AssertionError.html#method_valueOf">                                        
                                            <a class="" href="YAHOO.util.AssertionError.html#method_valueOf" property="yui:name" title="valueOf">valueOf</a>
                                            </span>
                                    </code>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div rel="yui:events" resource="#events">


                    </div>

                    <div rel="yui:attributes" resource="#configattributes">

                    </div>

			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>模块</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datemath.html" title="datemath">datemath</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_selector.html" title="selector">selector</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class="selected"><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>类</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.tool.TestCase.html" title="YAHOO.tool.TestCase">YAHOO.tool.TestCase</a></li>
                                <li class=""><a href="YAHOO.tool.TestCase.Wait.html" title="YAHOO.tool.TestCase.Wait">YAHOO.tool.TestCase.Wait</a></li>
                                <li class=""><a href="YAHOO.tool.TestLogger.html" title="YAHOO.tool.TestLogger">YAHOO.tool.TestLogger</a></li>
                                <li class=""><a href="YAHOO.tool.TestManager.html" title="YAHOO.tool.TestManager">YAHOO.tool.TestManager</a></li>
                                <li class=""><a href="YAHOO.tool.TestReporter.html" title="YAHOO.tool.TestReporter">YAHOO.tool.TestReporter</a></li>
                                <li class=""><a href="YAHOO.tool.TestRunner.html" title="YAHOO.tool.TestRunner">YAHOO.tool.TestRunner</a></li>
                                <li class=""><a href="YAHOO.tool.TestSuite.html" title="YAHOO.tool.TestSuite">YAHOO.tool.TestSuite</a></li>
                                <li class=""><a href="YAHOO.util.ArrayAssert.html" title="YAHOO.util.ArrayAssert">YAHOO.util.ArrayAssert</a></li>
                                <li class=""><a href="YAHOO.util.Assert.html" title="YAHOO.util.Assert">YAHOO.util.Assert</a></li>
                                <li class=""><a href="YAHOO.util.AssertionError.html" title="YAHOO.util.AssertionError">YAHOO.util.AssertionError</a></li>
                                <li class=""><a href="YAHOO.util.ComparisonFailure.html" title="YAHOO.util.ComparisonFailure">YAHOO.util.ComparisonFailure</a></li>
                                <li class=""><a href="YAHOO.util.DateAssert.html" title="YAHOO.util.DateAssert">YAHOO.util.DateAssert</a></li>
                                <li class=""><a href="YAHOO.util.ObjectAssert.html" title="YAHOO.util.ObjectAssert">YAHOO.util.ObjectAssert</a></li>
                                <li class="selected"><a href="YAHOO.util.ShouldError.html" title="YAHOO.util.ShouldError">YAHOO.util.ShouldError</a></li>
                                <li class=""><a href="YAHOO.util.ShouldFail.html" title="YAHOO.util.ShouldFail">YAHOO.util.ShouldFail</a></li>
                                <li class=""><a href="YAHOO.util.UnexpectedError.html" title="YAHOO.util.UnexpectedError">YAHOO.util.UnexpectedError</a></li>
                                <li class=""><a href="YAHOO.util.UnexpectedValue.html" title="YAHOO.util.UnexpectedValue">YAHOO.util.UnexpectedValue</a></li>
                                <li class=""><a href="YAHOO.util.UserAction.html" title="YAHOO.util.UserAction">YAHOO.util.UserAction</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>文件</h4>
                        <ul class="content">        
                                <li class=""><a href="yuitest.js.html" title="yuitest.js">yuitest.js</a></li>
                        </ul>
                    </div>

                    <div id="propertyList" class="module">
                        <h4>属性</h4>
                        <ul class="content">        
                                <li class=""><a href="#property_name" title="name">name</a></li>
                        </ul>
                    </div>




            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"url": "YAHOO.util.ComparisonFailure.html#property_actual", "access": "", "host": "YAHOO.util.ComparisonFailure", "type": "property", "name": "actual"}, {"url": "YAHOO.tool.TestSuite.html#method_add", "access": "", "host": "YAHOO.tool.TestSuite", "type": "method", "name": "add"}, {"url": "YAHOO.tool.TestRunner.html#method_add", "access": "", "host": "YAHOO.tool.TestRunner", "type": "method", "name": "add"}, {"url": "YAHOO.util.Assert.html#method_areEqual", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "areEqual"}, {"url": "YAHOO.util.Assert.html#method_areNotEqual", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "areNotEqual"}, {"url": "YAHOO.util.Assert.html#method_areNotSame", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "areNotSame"}, {"url": "YAHOO.util.Assert.html#method_areSame", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "areSame"}, {"url": "YAHOO.tool.TestRunner.html#event_begin", "access": "", "host": "YAHOO.tool.TestRunner", "type": "event", "name": "begin"}, {"url": "YAHOO.tool.TestRunner.html#method_clear", "access": "", "host": "YAHOO.tool.TestRunner", "type": "method", "name": "clear"}, {"url": "YAHOO.tool.TestRunner.html#event_complete", "access": "", "host": "YAHOO.tool.TestRunner", "type": "event", "name": "complete"}, {"url": "YAHOO.tool.TestCase.Wait.html#property_delay", "access": "", "host": "YAHOO.tool.TestCase.Wait", "type": "property", "name": "delay"}, {"url": "YAHOO.util.ComparisonFailure.html#property_expected", "access": "", "host": "YAHOO.util.ComparisonFailure", "type": "property", "name": "expected"}, {"url": "YAHOO.tool.TestRunner.html#event_fail", "access": "", "host": "YAHOO.tool.TestRunner", "type": "event", "name": "fail"}, {"url": "YAHOO.util.Assert.html#method_fail", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "fail"}, {"url": "YAHOO.tool.TestRunner.html#method_fireEvent", "access": "protected", "host": "YAHOO.tool.TestRunner", "type": "method", "name": "fireEvent"}, {"url": "YAHOO.util.Assert.html#method__formatMessage", "access": "protected", "host": "YAHOO.util.Assert", "type": "method", "name": "_formatMessage"}, {"url": "YAHOO.util.AssertionError.html#method_getMessage", "access": "", "host": "YAHOO.util.AssertionError", "type": "method", "name": "getMessage"}, {"url": "YAHOO.util.UnexpectedValue.html#method_getMessage", "access": "", "host": "YAHOO.util.UnexpectedValue", "type": "method", "name": "getMessage"}, {"url": "YAHOO.tool.TestRunner.html#event_ignore", "access": "", "host": "YAHOO.tool.TestRunner", "type": "event", "name": "ignore"}, {"url": "YAHOO.util.Assert.html#method_isArray", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isArray"}, {"url": "YAHOO.util.Assert.html#method_isBoolean", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isBoolean"}, {"url": "YAHOO.util.Assert.html#method_isFalse", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isFalse"}, {"url": "YAHOO.util.Assert.html#method_isFunction", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isFunction"}, {"url": "YAHOO.util.Assert.html#method_isInstanceOf", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isInstanceOf"}, {"url": "YAHOO.util.Assert.html#method_isNaN", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isNaN"}, {"url": "YAHOO.util.Assert.html#method_isNotNaN", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isNotNaN"}, {"url": "YAHOO.util.Assert.html#method_isNotNull", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isNotNull"}, {"url": "YAHOO.util.Assert.html#method_isNotUndefined", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isNotUndefined"}, {"url": "YAHOO.util.Assert.html#method_isNull", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isNull"}, {"url": "YAHOO.util.Assert.html#method_isNumber", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isNumber"}, {"url": "YAHOO.util.Assert.html#method_isObject", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isObject"}, {"url": "YAHOO.util.Assert.html#method_isString", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isString"}, {"url": "YAHOO.util.Assert.html#method_isTrue", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isTrue"}, {"url": "YAHOO.util.Assert.html#method_isTypeOf", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isTypeOf"}, {"url": "YAHOO.util.Assert.html#method_isUndefined", "access": "", "host": "YAHOO.util.Assert", "type": "method", "name": "isUndefined"}, {"url": "YAHOO.tool.TestSuite.html#property_name", "access": "", "host": "YAHOO.tool.TestSuite", "type": "property", "name": "name"}, {"url": "YAHOO.util.AssertionError.html#property_name", "access": "", "host": "YAHOO.util.AssertionError", "type": "property", "name": "name"}, {"url": "YAHOO.util.ComparisonFailure.html#property_name", "access": "", "host": "YAHOO.util.ComparisonFailure", "type": "property", "name": "name"}, {"url": "YAHOO.util.UnexpectedValue.html#property_name", "access": "", "host": "YAHOO.util.UnexpectedValue", "type": "property", "name": "name"}, {"url": "YAHOO.util.ShouldFail.html#property_name", "access": "", "host": "YAHOO.util.ShouldFail", "type": "property", "name": "name"}, {"url": "YAHOO.util.ShouldError.html#property_name", "access": "", "host": "YAHOO.util.ShouldError", "type": "property", "name": "name"}, {"url": "YAHOO.tool.TestRunner.html#event_pass", "access": "", "host": "YAHOO.tool.TestRunner", "type": "event", "name": "pass"}, {"url": "YAHOO.tool.TestCase.html#method_resume", "access": "", "host": "YAHOO.tool.TestCase", "type": "method", "name": "resume"}, {"url": "YAHOO.tool.TestRunner.html#method_resume", "access": "", "host": "YAHOO.tool.TestRunner", "type": "method", "name": "resume"}, {"url": "YAHOO.tool.TestRunner.html#method_run", "access": "", "host": "YAHOO.tool.TestRunner", "type": "method", "name": "run"}, {"url": "YAHOO.tool.TestCase.Wait.html#property_segment", "access": "", "host": "YAHOO.tool.TestCase.Wait", "type": "property", "name": "segment"}, {"url": "YAHOO.tool.TestCase.html#method_setUp", "access": "", "host": "YAHOO.tool.TestCase", "type": "method", "name": "setUp"}, {"url": "YAHOO.tool.TestSuite.html#method_setUp", "access": "", "host": "YAHOO.tool.TestSuite", "type": "method", "name": "setUp"}, {"url": "YAHOO.tool.TestCase.html#method_tearDown", "access": "", "host": "YAHOO.tool.TestCase", "type": "method", "name": "tearDown"}, {"url": "YAHOO.tool.TestSuite.html#method_tearDown", "access": "", "host": "YAHOO.tool.TestSuite", "type": "method", "name": "tearDown"}, {"url": "YAHOO.tool.TestRunner.html#event_testcasebegin", "access": "", "host": "YAHOO.tool.TestRunner", "type": "event", "name": "testcasebegin"}, {"url": "YAHOO.tool.TestRunner.html#event_testcasecomplete", "access": "", "host": "YAHOO.tool.TestRunner", "type": "event", "name": "testcasecomplete"}, {"url": "YAHOO.tool.TestRunner.html#event_testsuitebegin", "access": "", "host": "YAHOO.tool.TestRunner", "type": "event", "name": "testsuitebegin"}, {"url": "YAHOO.tool.TestRunner.html#event_testsuitecomplete", "access": "", "host": "YAHOO.tool.TestRunner", "type": "event", "name": "testsuitecomplete"}, {"url": "YAHOO.util.AssertionError.html#method_toString", "access": "", "host": "YAHOO.util.AssertionError", "type": "method", "name": "toString"}, {"url": "YAHOO.util.ComparisonFailure.html#method_toString", "access": "", "host": "YAHOO.util.ComparisonFailure", "type": "method", "name": "toString"}, {"url": "YAHOO.util.UnexpectedValue.html#property_unexpected", "access": "", "host": "YAHOO.util.UnexpectedValue", "type": "property", "name": "unexpected"}, {"url": "YAHOO.util.AssertionError.html#method_valueOf", "access": "", "host": "YAHOO.util.AssertionError", "type": "method", "name": "valueOf"}, {"url": "YAHOO.tool.TestCase.html#method_wait", "access": "", "host": "YAHOO.tool.TestCase", "type": "method", "name": "wait"}];
</script>
</body>
</html>
